law on bad debt settlement